package hb.software.attendance.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.attendance.domain.AttendanceRecord;
import hb.software.attendance.service.AttendanceRecordManager;
import hb.software.web.spring.controller.GenericController;

/**
 * @ClassName: AttendanceRecordController
 * @Description: Controller of AttendanceRecord Module
 * @author WangPeiDong
 * @date May 30, 2020 9:14:02 AM
 * 
 */
@Controller
@RequestMapping("/attendanceRecord")
public class AttendanceRecordController extends GenericController<AttendanceRecord, Long, AttendanceRecordManager> {

	AttendanceRecordManager attendanceRecordManager;

	@Autowired
	public void setAttendanceRecordManager(AttendanceRecordManager attendanceRecordManager) {
		this.attendanceRecordManager = attendanceRecordManager;
		this.manager = this.attendanceRecordManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/attendanceRecord/index";
		return result;
	}

}
